/**
 * 系统配置模块路由
 */
const pathName = '/wechat/'

const ManagerMaterial = resolve => {
    require.ensure(['admin/routers/wechat/manager/material.vue'], () => {
        resolve(require('admin/routers/wechat/manager/material.vue'))
    })
}

const ManagerUser = resolve => {
    require.ensure(['admin/routers/wechat/manager/user.vue'], () => {
        resolve(require('admin/routers/wechat/manager/user.vue'))
    })
}

const MaterialMpnewsUpdate = resolve => {
    require.ensure(['admin/routers/wechat/manager/material/mpnews-update.vue'], () => {
        resolve(require('admin/routers/wechat/manager/material/mpnews-update.vue'))
    })
}

const MaterialTextUpdate = resolve => {
    require.ensure(['admin/routers/wechat/manager/material/text-update.vue'], () => {
        resolve(require('admin/routers/wechat/manager/material/text-update.vue'))
    })
}

const Reply = resolve => {
    require.ensure(['admin/routers/wechat/function/reply.vue'], () => {
        resolve(require('admin/routers/wechat/function/reply.vue'))
    })
}

const ReplyUpdate = resolve => {
    require.ensure(['admin/routers/wechat/function/reply-update.vue'], () => {
        resolve(require('admin/routers/wechat/function/reply-update.vue'))
    })
}

const Menu = resolve => {
    require.ensure(['admin/routers/wechat/function/menu.vue'], () => {
        resolve(require('admin/routers/wechat/function/menu.vue'))
    })
}

const Customer = resolve => {
    require.ensure(['admin/routers/wechat/function/customer.vue'], () => {
        resolve(require('admin/routers/wechat/function/customer.vue'))
    })
}

const CustomerUpdate = resolve => {
    require.ensure(['admin/routers/wechat/function/customer-update.vue'], () => {
        resolve(require('admin/routers/wechat/function/customer-update.vue'))
    })
}

export default  [
    { path: pathName + 'function/menu' , component: Menu },

	{ path: pathName + 'function/reply' , component: Reply },
    { path: pathName + 'function/reply/update' , component: ReplyUpdate },
    { path: pathName + 'function/reply/update/:id' , component: ReplyUpdate },

    { path: pathName + 'function/customer' , component: Customer },
    { path: pathName + 'function/customer/update' , component: CustomerUpdate },
    { path: pathName + 'function/customer/update/:id' , component: CustomerUpdate },

	{ path: pathName + 'manager/material' , component: ManagerMaterial },
    { path: pathName + 'manager/material/mpnews' , component: MaterialMpnewsUpdate },
    { path: pathName + 'manager/material/mpnews/:id' , component: MaterialMpnewsUpdate },
    { path: pathName + 'manager/material/text' , component: MaterialTextUpdate },
    { path: pathName + 'manager/material/text/:id' , component: MaterialTextUpdate },

    { path: pathName + 'manager/user' , component: ManagerUser },


]